package utils

import "fmt"

func ValidateName(name []string) error {
	if len(name) == 0 {
		return fmt.Errorf("err: name is null")
	} else {
		for i := range name {
			if name[i] == "" {
				return fmt.Errorf("err: name is null")
			}
		}
	}
	return nil
}
